//
//  LYHMeController.m
//  微考
//
//  Created by BrianLiu on 2017/5/11.
//  Copyright © 2017年 BrianLiu. All rights reserved.
//



#import "LYHMeController.h"
#import "LYHHeadView.h"
#import "LYHMeVeiw.h"

@interface LYHMeController ()



@end

@implementation LYHMeController

-(void)viewDidAppear:(BOOL)animated{
    [super viewDidAppear:animated];
    LYHHeadView *headView = [LYHHeadView showHeardView];
    LYHMeVeiw *meView = [LYHMeVeiw loadMeXib];
    meView.frame = CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
    meView.contentSize = CGSizeMake(0, MAXFLOAT);
    meView.showsVerticalScrollIndicator = false;
    [self.view addSubview:meView];
    [meView addSubview:headView];
    
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpNav];
    
    
//    [self.view addSubview:headView];
//    LYHMeVeiw *meView = [LYHMeVeiw loadMeXib];
//    meView.backgroundColor = [UIColor redColor];
//    meView.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
//    meView.contentSize = CGSizeMake(0, [UIScreen mainScreen].bounds.size.height);

    // 隐藏滑动条
   
//    self.tableView.tableHeaderView = headView;
}

// 设置导航条
-(void)setUpNav{
    self.navigationItem.title = @"我的";
}

#pragma dataSourse
//-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
//{
//    return 2;
//}
//
//-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
//{
//    if (section == 0) {
//        return 3;
//    } else {
//        return 1;
//    }
//}
//
//-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
//{
//    NSString * ID = @"cell";
//    UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:ID];
//    if (cell == nil) {
//        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:ID];
//    }
//    cell.imageView.image = [UIImage imageNamed:@""];
//    cell.textLabel.text = @"123";
//    return cell;
//    
//}



@end
